﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Coach.aspx.cs" Inherits="Autenticazione.Coach" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href=Stile.css rel=Stylesheet type="text/css"></link>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%">
            <tr>
                <td align="center">
                    <table>
                        <tr>
                            <td colspan="2">&nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center" class="lblInfo">
                                Inserire tutti i dati relativi all'allenatore, quindi premere sul pulasante <I><U>Memorizza</U></I>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="lblBold">Allenatore</td>
                            <td align="left"><asp:TextBox ID="txtFullName" MaxLength="100" runat="server"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:RequiredFieldValidator ID="FullNameValidator" ControlToValidate="txtTelefono" runat="server" 
                                    Display="Dynamic" CssClass="err" ErrorMessage="(*)"></asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td class="lblBold">Telefono</td>
                            <td align="left">
                                <asp:TextBox ID="txtTelefono" MaxLength="20" runat="server"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:RequiredFieldValidator ID="TelValidator" ControlToValidate="txtTelefono" runat="server" 
                                    Display="Dynamic" CssClass="err" ErrorMessage="(*)"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegTelefonoCoach" runat="server" 
                                    ErrorMessage="Numero di telefono non valido" Display="Dynamic" CssClass="err" ControlToValidate="txtTelefono" ValidationExpression="([0-9]\-?)*">
                                    </asp:RegularExpressionValidator>
                            </td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center"><asp:Button ID="btnSalvaCoach" 
                                    runat="server" Text="Memorizza" CssClass="btn"
                                    onclick="btnSalvaCoach_Click" /></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
